package com.koalac.ironman.net.pojo.response;

import org.json.JSONObject;
/**
 * 版本
 * @author cyleung  Jun 20, 2014
 */
public class Version extends BaseResponse{
	/**
	 * 软件名称
	 */
	private String title = "";
	/**
	 * 版本编号
	 */
	private String version = "";
	/**
	 * 文件名称
	 */
	private String filepath = "";
	/**
	 * 更新时间戳
	 */
	private String dateline = "";
	
	/**
	 * 描述
	 */
	private String describe = "";
	
	public void init(JSONObject source){
		if(null!= source){
			title = source.optString("title");
			version = source.optString("version");
			filepath = source.optString("filepath");
			dateline = source.optString("dateline");
			describe = source.optString("describe");
		}
	}

	public String getTitle() {
		return title;
	}

	public String getVersion() {
		return version;
	}

	public String getFilepath() {
		return filepath;
	}

	public String getDateline() {
		return dateline;
	}
	
	public String getDescribe(){
		return describe;
	}
	
	
}
